package user;

import operation.*;
import org.w3c.dom.ls.LSOutput;

import java.util.Scanner;

public class AdminUser extends User {

    //用于初始化
    public AdminUser(String name) {
        super(name);
        this.ioperations = new Ioperation[]{
            new ExitOperation(),
                new AddOperation(),
                new DelOperation(),
                new ShowOperation(),
                new FindOperation()
        };
    }
    public int  menu(){
        System.out.println("*****管理员菜单*****");
        System.out.println("0.退出系统");
        System.out.println("1.新增图书");
        System.out.println("2.删除图书");
        System.out.println("3.显示图书");
        System.out.println("4.查找图书");
        System.out.println("*******************");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请选择你要进行的操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
